.class public Lcom/philzhu/www/framework/impl/AndroidPixmap;
.super Ljava/lang/Object;
.source "AndroidPixmap.java"

# interfaces
.implements Lcom/philzhu/www/framework/Pixmap;


# instance fields
.field bitmap:Landroid/graphics/Bitmap;

.field format:Lcom/philzhu/www/framework/Graphics$PixmapFormat;

.field rawHeight:I

.field rawWidth:I


# direct methods
.method public constructor <init>(Landroid/graphics/Bitmap;Lcom/philzhu/www/framework/Graphics$PixmapFormat;II)V
    .locals 0
    .parameter "bitmap"
    .parameter "format"
    .parameter "rawWidth"
    .parameter "rawHeight"

    .prologue
    .line 14
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 15
    iput-object p1, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->bitmap:Landroid/graphics/Bitmap;

    .line 16
    iput-object p2, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->format:Lcom/philzhu/www/framework/Graphics$PixmapFormat;

    .line 17
    iput p3, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->rawWidth:I

    .line 18
    iput p4, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->rawHeight:I

    .line 19
    return-void
.end method


# virtual methods
.method public dispose()V
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->bitmap:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 49
    return-void
.end method

.method public getFormat()Lcom/philzhu/www/framework/Graphics$PixmapFormat;
    .locals 1

    .prologue
    .line 43
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->format:Lcom/philzhu/www/framework/Graphics$PixmapFormat;

    return-object v0
.end method

.method public getHeight()I
    .locals 1

    .prologue
    .line 38
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->bitmap:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    return v0
.end method

.method public getRawHeight()I
    .locals 1

    .prologue
    .line 28
    iget v0, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->rawHeight:I

    return v0
.end method

.method public getRawWidth()I
    .locals 1

    .prologue
    .line 23
    iget v0, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->rawWidth:I

    return v0
.end method

.method public getWidth()I
    .locals 1

    .prologue
    .line 33
    iget-object v0, p0, Lcom/philzhu/www/framework/impl/AndroidPixmap;->bitmap:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v0

    return v0
.end method
